The built-in function min(x, y) returns the minimum value of x and y. min(x, min(y, z)) obviously returns the smallest value of x, y, and z.